const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 在根级的 getters 上开发子模块的属性给别人看 别人用
  name: state => state.user.userInfo.username, //  建立用户名称的映射
  userId: state => state.user.userInfo.userId,
  staffPhoto: state => state.user.userInfo.staffPhoto, // 建立用户头像的映射
  companyId: state => state.user.userInfo.companyId, // 建立对于 user 模块的 companyId 的快捷访问
  routes: state => state.permission.routes // 导出当前动态路由
};
export default getters;
